package com.fast.server.entity.enums;

import lombok.Getter;

@Getter
public enum RespBeanEnum {
    //常用参数
    CODE_200(200, "请求成功"),
    CODE_404(404, "请求地址不存在"),
    CODE_600(600, "请求参数错误"),
    CODE_601(601, "信息已经存在"),
    CODE_500(500, "服务器返回错误，请联系管理员"),

    //CRUD参数
    ADD_FILED(500100, "添加失败"),
    ADD_CODE_200(200, "添加成功"),

    UPDATE_FILED(500101, "修改失败"),
    UPDATE_CODE_200(200, "修改成功"),

    DELETE_FILED(500102, "删除失败"),
    DELETE_CODE_200(200, "删除成功"),

    //对象参数
    OBJECT_FILED(500200,"用户不存在"),
    AVATAR_FILED(500200,"用户不存在或用户AVATAR为空"),
    SPACE_FILED(500201,"用户不存在或空间为空"),

    ;

    private Integer code;
    private String msg;

    RespBeanEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
